<!DOCTYPE html>
<html>
  <head>
    <script src="https://unpkg.com/konva@8.3.11/konva.min.js"></script>
    <meta charset="utf-8" />
    <title>Konva Path Demo</title>
    <style>
      body {
        margin: 0;
        padding: 0;
        overflow: hidden;
        background-color: #f0f0f0;
      }
    </style>
  </head>

  <body>
    <div id="container"></div>
    <script>
      var stage = new Konva.Stage({
        container: 'container',
        width: window.innerWidth,
        height: window.innerHeight,
      });

      let layer = new Konva.Layer();
      const rectData = {
        data: 'M10,10 L100,100 ',
        stroke: '#000000',
        strokeWidth: 10,
      };
      var path = new Konva.Path(rectData)

      // add the shape to the layer
      layer.add(path);

      // add the layer to the stage
      stage.add(layer);
    </script>
  </body>
</html>